route.ts
基本信息
- 类型: API 路由
- 路径:
src/app/api/prompts/[id]/raw/route.ts
功能描述
Extracts the prompt ID, format, and file type from a URL parameter Supports formats: "abc123.prompt.md", "abc123some-slug.prompt.md", "abc123.prompt.yml" Also supports: "abc123.SKILL.md", "abc123some-slug.SKILL.md" (SKILL only has .md format)
导出内容
- 无显式导出
依赖导入
next/server@/lib/db
详细说明
详见代码实现